const https = require("https");

const httpsGet = function (url, config, callBack) {
  return new Promise((resolve, reject) => {
    https
      .get(url, config, (res) => {
        callBack(res, resolve, reject);
      })
      .on("error", (e) => {
        reject(e);
      });
  });
};

module.exports = {
  httpsGet,
};
